﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeBehind="RoleAuth.aspx.cs" Inherits="QuaManSys.Rights.RolesAuth"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>角色授权</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="TitlePanel" runat="server" CssClass="titlePadding">
        给角色<asp:Label ID="RID"
            runat="server" Text=""></asp:Label>授权
        <asp:Label ID="TID" runat="server" Text="" Style="display: none;"></asp:Label>
        </asp:Panel>
        <div id="strinfo" runat="server" visible="false">
        更新成功，请<asp:HyperLink ID="hlkReturn" runat="server" 
        NavigateUrl="~/Rights/RolesManPage.aspx">返回</asp:HyperLink>。
        </div>
        <div id="RoleAuthMain" runat="server" style="float: left; margin-left: 10px;">
            <asp:GridView ID="ModuleView" Width="100px" runat="server" DataKeyNames="Id"
                CssClass="Grid" AllowSorting="True" AutoGenerateColumns="False" OnRowDataBound="ModuleView_RowDataBound"
                OnSelectedIndexChanging="ModuleView_SelectedIndexChanging">
                <FooterStyle CssClass="GridFooter" />
                <RowStyle CssClass="Row" />
                <Columns>
                    <asp:TemplateField HeaderText="角色名称">
                        <ItemTemplate>
                            <asp:Label ID="lab_ID" runat="server" Text='<%# Eval("Id")%>' Style="display: none"></asp:Label>
                            <asp:Label ID="lblMenu" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                            <asp:Label ID="lab_Verify" runat="server" Text="" Style="display: none"></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle Wrap="False" />
                        <ItemStyle HorizontalAlign="Left" Wrap="False" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="权限列表">
                        <ItemTemplate>
                            <asp:CheckBoxList ID="AuthorityList_Grant" runat="server" RepeatDirection="Horizontal"
                                RepeatLayout="Flow">
                            </asp:CheckBoxList>
                        </ItemTemplate>
                        <HeaderStyle Wrap="False" />
                        <ItemStyle Wrap="False" />
                    </asp:TemplateField>
                    <%--<asp:TemplateField HeaderText=" 更新 ">
                        <ItemTemplate>
                            <asp:LinkButton ID="btn_update" runat="server" CommandArgument='<%# Eval("Id")%>'
                                CausesValidation="False" CommandName="Select" Text="更新"></asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle Wrap="False" />
                        <ItemStyle Wrap="False" />
                    </asp:TemplateField>--%>
                </Columns>
                <HeaderStyle CssClass="HeadingCell" />
                <AlternatingRowStyle BorderStyle="None" CssClass="AlternatingRow" />
            </asp:GridView>
            <div style="height: 24px; line-height: 24px; margin-top: 5px;">
                <asp:Button ID="btn_AllSave" runat="server" CssClass="smallbtn" Text="保存全部"
                    OnClick="btn_AllSave_Click" />
            </div>
        </div>
    </div>
    </form>
</body>
</html>
